package com.yanyu.space.sys.bean.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yanyu.space.common.core.bean.db.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 系统菜单
 *
 * @author yanyu
 */
@Data
@TableName("sys_menu")
@ApiModel(value = "Menu对象", description = "系统菜单")
public class Menu extends BaseEntity {

    @ApiModelProperty(value = "菜单父id，0代表顶级菜单")
    private Long parentId;

    @ApiModelProperty(value = "菜单名")
    private String name;

    @ApiModelProperty(value = "路由地址")
    private String path;

    @ApiModelProperty(value = "组件路径")
    private String component;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "是否为外链，1:是 0:否")
    private Integer frameFlag;

    @ApiModelProperty(value = "是否缓存，1:缓存，0:不缓存")
    private Integer cacheFlag;

    @ApiModelProperty(value = "类型，0:目录，1：菜单，2：按钮，3：其他")
    private Integer type;

    @ApiModelProperty(value = "菜单状态，1：显示 0：隐藏")
    private Integer visible;

    @ApiModelProperty(value = "状态，1：正常，0：冻结")
    private Integer enabled;

    @ApiModelProperty(value = "菜单顺序， 由小到大")
    private Integer sort;

    @ApiModelProperty(value = "权限标识，模块:业务:功能，如：system:user:add")
    private String perms;

}
